<p class="Paragraph"><help:key-word value="database contents; inserting as fields" tag="kw65991_1" xmlns:help="http://openoffice.org/2000/help"/><help:help-text value="hide" xmlns:help="http://openoffice.org/2000/help">Select this option if fields should be inserted in the document for the data selected in the data source browser.</help:help-text>If you select the <span class="T1">Fields</span> option in the <span class="T1">Insert Database Columns</span> dialog, <help:link Id="67633" xmlns:help="http://openoffice.org/2000/help">Fields</help:link> will be inserted in the document for the data selected in the data source browser. These <help:link Id="67628" xmlns:help="http://openoffice.org/2000/help">database fields</help:link> work as wildcards for the individual database columns and can be used for form letters. Click the <help:link Id="65972" xmlns:help="http://openoffice.org/2000/help"><span class="T1">Data in Fields</span></help:link> icon to match the contents of the fields to the currently selected record.</p>
<p class="Paragraph">If several records are selected when you choose the <span class="T1">Data in Text</span> function, the mail merge fields will be inserted according to the number of records. Furthermore, a field command like "Next record" will be inserted automatically between individual field command blocks inserted into the document.</p>
</span></th></tr></table>
<p class="Paragraph">The <span class="T1">Insert Database Columns</span> dialog lets you define which database fields to insert into the document and how to format the paragraphs.</p>
<p class="Head2">Fields</p>
<p class="Paragraph">In the <span class="T1">Fields</span> area, use the arrow button to select the database table columns into which you want to insert field contents.</p>
<p class="Paragraph">This list box lists all columns of the database table, which can be accepted in the selection list box to insert them in the document. <help:help-text value="visible">Select the database column, which you want to insert it in the document.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible">Click this button to accept the entry, you selected in the <span style="font-weight:bold;">Database columns</span> list box, in the selection field.</help:help-text> You can also double click the entry to select it.</p>
<p class="Paragraph"><help:help-text value="visible">The selection field lists the database columns that you selected to insert them in the document. You can also enter a text here. This text will be also inserted in the document.</help:help-text> The entries' order in the selection field corresponds to the data order in the document. For example, if you insert a line break with the Enter key, in the same way, a (paragraph) break will be inserted in the same position in the document.</p>
<p class="Paragraph">By default, the inserted paragraphs are formatted with the current Paragraph Styles. This format corresponds to the "none" entry in the <span style="font-weight:bold;">Paragraph Style</span> list box.<help:help-text value="visible"> This is where you can select other Paragraph Styles to apply in the paragraph you want to insert in the document.</help:help-text> The list box presents the available Paragraph Styles defined in <help:productname>%PRODUCTNAME</help:productname> and managed in the <help:link Id="67722">Style Catalog</help:link>.</p>